SOURCES=iterate.o projectfile.o sourcefile.o
CFLAGS=`pkg-config --cflags --libs gtk+-2.0`

all: main.o $(SOURCES)
	g++ -o iterate main.o iterate.o projectfile.o sourcefile.o `pkg-config --cflags --libs gtk+-2.0`

main.o: main.cpp
	g++ -c main.cpp $(CFLAGS)
	
iterate.o: iterate.cpp iterate.h
	g++ -c iterate.cpp $(CFLAGS)
	
projectfile: projectfile.cpp projectfile.h
	g++ -c projectfile.cpp
	
sourcefile: sourcefile.cpp sourcefile.h
	g++ -c sourcefile.cpp

clean:
	rm *.o
	
realclean:
	rm *.o iterate
	
small: all
	strip -s iterate
	
